
.palette() {
  .palette {
    border: 1px solid #d9d9d9;
    padding: 7px 5px 7px 10px;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    .colorBox {
      width: 20px;
      height: 20px;
    }
    .colorInput {
      position: absolute;
      left: 0;
      top: 0;
      opacity: 0;
      width: 100%;
      height: 100%;
    }
  }
}

.scopeRulesWrap() {
  margin: 0 -24px;
  .scopeRule {
    padding: 5px 24px;
    .icon-drag {
      position: absolute;
      left: 4px;
      display: none;
    }
    &:hover {
      .icon-drag {
        display: block;
      }
      background-color: #f6f6f6;
    }
  }
}

.chartRuleColorModal {
  .palette();
  .ant-radio-input, .ant-checkbox-input {
    position: absolute !important;
  }
  .gradientColor {
    height: 36px;
    width: 100%;
    border-radius: 4px;
  }
  .scopeRulesWrap {
    .scopeRulesWrap;
  }
}

.sortableScopeRuleWrap {
  background-color: #f6f6f6;
  z-index: 1000;
  .palette();
  &.scopeRulesWrap {
    .scopeRulesWrap;
  }
}

